package cn.gdut.chengcai.base;

import com.alibaba.fastjson.JSON;

public class JsonUtil {
	public JsonUtil() {
	}

	public static Object fromJson(String jsonString, Class clazz) {
		return JSON.parseObject(jsonString, clazz);
	}

	public static String toJson(Object object) {
		return JSON.toJSONString(object);
	}

}
